package com.kaifamiao.date1110;

public class DogTest4 {

	public static void main(String[] args) {
		
		Dog a = new Dog( "旺财" , 5 );
		System.out.println( System.identityHashCode( a ) ) ;
		System.out.println( a.hashCode() );
		
		
		Dog b = new Dog( "旺财" , 5 );
		System.out.println( System.identityHashCode( b ) ) ;
		System.out.println( b.hashCode() );
		
		System.out.println( a.equals( b ) );

	}

}
